/*=========================================
            RESET
=========================================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f7f8fa;
    color: #222;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/*=========================================
            HEADER
=========================================*/
.detail-header {
    background: #ffffff;
    padding: 25px 0;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 999;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #d3453d;
    font-weight: 600;
    margin-bottom: 15px;
    transition: .3s;
}

.back-button:hover {
    transform: translateX(-5px);
}

.breadcrumb {
    color: #777;
    font-size: 15px;
}

.breadcrumb a {
    color: #777;
}

.breadcrumb strong {
    color: #222;
}

/*=========================================
            DETAIL SECTION
=========================================*/
.detail-section {
    padding: 90px 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: flex-start;
}

/*=========================================
            GALLERY
=========================================*/
.gallery {
    animation: muncul .8s ease;
}

.main-image {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0,0,0,.08);
}

.main-image img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    transition: .35s;
    cursor: zoom-in;
}

.main-image img:hover {
    transform: scale(1.03);
}

.thumbnail-list {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.thumb {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 14px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: .3s;
}

.thumb:hover {
    transform: translateY(-6px);
}

.thumb.active {
    border-color: #d3453d;
}

/*=========================================
        INFORMASI PRODUK
=========================================*/
.product-detail {
    animation: muncul .8s ease;
    animation-delay: .2s;
    animation-fill-mode: both;
}

.badge {
    display: inline-block;
    background: #22b95b;
    color: #fff;
    padding: 10px 22px;
    border-radius: 50px;
    margin-bottom: 20px;
    font-weight: 600;
}

.product-detail h1 {
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 18px;
}
.description {
    color: #666;
    line-height: 32px;
    font-size: 17px;
    margin-bottom: 35px;
}

/*=========================================
            SPESIFIKASI
=========================================*/
.spec-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #ffffff;
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,.06);
    transition: .35s;
}

.spec-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(0,0,0,.10);
}

.spec-item i {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #d3453d;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    flex-shrink: 0;
}

.spec-item h4 {
    font-size: 17px;
    margin-bottom: 5px;
    color: #222;
}

.spec-item p {
    color: #666;
    font-size: 15px;
}

/*=========================================
            BUTTON
=========================================*/
.button-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn-wa,
.btn-toko {
    flex: 1;
    min-width: 220px;
    padding: 18px;
    border-radius: 14px;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    transition: .35s;
}

.btn-wa {
    background: #25D366;
}

.btn-wa:hover {
    background: #1ebc59;
    transform: translateY(-5px);
}

.btn-toko {
    background: #42B549;
}

.btn-toko:hover {
    background: #31993b;
    transform: translateY(-5px);
}

.btn-wa i,
.btn-toko i {
    margin-right: 10px;
}

/*=========================================
            SECTION TITLE
=========================================*/
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 38px;
    color: #222;
    margin-bottom: 15px;
}

.section-title p {
    max-width: 700px;
    margin: auto;
    color: #666;
    line-height: 30px;
}

/*=========================================
            KEUNGGULAN
=========================================*/
.keunggulan {
    background: #ffffff;
    padding: 100px 0;
}

.keunggulan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.keunggulan-card {
    background: #fff;
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    transition: .35s;
}

.keunggulan-card:hover {
    transform: translateY(-10px);
}

.keunggulan-card i {
    width: 85px;
    height: 85px;
    margin: auto;
    margin-bottom: 25px;
    border-radius: 50%;
    background: #d3453d;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 34px;
}

.keunggulan-card h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.keunggulan-card p {
    color: #666;
    line-height: 30px;
}

/*=========================================
        DESKRIPSI PRODUK
=========================================*/
.product-description {
    padding: 100px 0;
    background: #f8f9fb;
}

.description-box {
    background: #ffffff;
    padding: 45px;
    border-radius: 22px;
    box-shadow: 0 15px 35px rgba(0,0,0,.07);
}

.description-box p {
    font-size: 17px;
    color: #666;
    line-height: 34px;
    margin-bottom: 25px;
}

.description-box p:last-child {
    margin-bottom: 0;
}

/*=========================================
            MANFAAT
=========================================*/
.manfaat {
    padding: 100px 0;
    background: #ffffff;
}

.manfaat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.manfaat-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 25px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
    transition: .35s;
}

.manfaat-item:hover {
    transform: translateY(-8px);
}

.manfaat-item i {
    width: 55px;
    height: 55px;
    background: #21b15d;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    flex-shrink: 0;
}

.manfaat-item span {
    font-size: 17px;
    color: #444;
    line-height: 30px;
}

/*=========================================
        TIPS PENYIMPANAN
=========================================*/
.tips {
    padding: 100px 0;
    background: #f8f9fb;
}

.tips-box {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.tips-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,.06);
    transition: .35s;
}

.tips-item:hover {
    transform: translateY(-8px);
}

.tips-item i {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #d3453d;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    flex-shrink: 0;
}

.tips-item h3 {
    margin-bottom: 10px;
    font-size: 22px;
    color: #222;
}

.tips-item p {
    color: #666;
    line-height: 32px;
}

/*=========================================
                FAQ
=========================================*/
.faq {
    padding: 100px 0;
    background: #ffffff;
}

.faq-box {
    max-width: 900px;
    margin: auto;
}

.faq-item {
    background: #fff;
    border-radius: 18px;
    margin-bottom: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,.06);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 25px 30px;
    border: none;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 19px;
    font-weight: 600;
    color: #222;
    transition: .3s;
}

.faq-question:hover {
    background: #fafafa;
}

.faq-question i {
    color: #d3453d;
    transition: .35s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
}

.faq-answer p {
    padding: 0 30px 30px;
    color: #666;
    line-height: 32px;
}

.faq-item.active .faq-answer {
    max-height: 1000px; /* Ditingkatkan agar teks panjang tidak terpotong */
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

/*=========================================
        RELATED PRODUCT SLIDER
=========================================*/
.related {
    padding: 90px 0;
    background: #f8f9fb;
}

.related-header {
    margin-bottom: 45px;
}

.related-header h2 {
    font-size: 40px;
    color: #222;
    margin-bottom: 10px;
}

.related-header p {
    color: #666;
    font-size: 18px;
}

.related-slider {
    position: relative;
    padding: 0 70px;
    overflow: hidden;
}

.related-track {
    display: flex;
    gap: 30px;
    transition: transform .6s cubic-bezier(.22,.61,.36,1);
}

.related-card {
    flex: 0 0 calc((100% - 60px) / 3);
    min-width: calc((100% - 60px) / 3);
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
    transition: .35s;
}

.related-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 50px rgba(0,0,0,.15);
}

.related-card img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    display: block;
    transition: .5s;
}

.related-card:hover img {
    transform: scale(1.08);
}

.related-info {
    padding: 25px;
    text-align: center;
}

.related-info h3 {
    font-size: 24px;
    color: #222;
    margin-bottom: 10px;
}

.related-info span {
    color: #d3453d;
    font-weight: 600;
}

.related-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.related-nav button {
    pointer-events: auto;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #d3453d;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    transition: .3s;
}

.related-nav button:hover {
    background: #d3453d;
    color: #fff;
    transform: scale(1.1);
}

.related-dots {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 10px;
}

.related-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
}

.related-dots .dot.active {
    width: 35px;
    border-radius: 20px;
    background: #d3453d;
}

/*=========================================
            CALL TO ACTION
=========================================*/
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #d3453d, #f16b5f);
    text-align: center;
    color: #fff;
}

.cta h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 32px;
    font-size: 18px;
}

.cta .button-group {
    justify-content: center;
}

/*=========================================
                FOOTER
=========================================*/
.detail-footer {
    background: #202020;
    color: #fff;
    padding: 35px 0;
    text-align: center;
}

.detail-footer p {
    opacity: .85;
    font-size: 15px;
}

/*=========================================
        FLOATING WHATSAPP
=========================================*/
.floating-wa {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
    z-index: 999;
    transition: .35s;
}

.floating-wa:hover {
    transform: scale(1.1);
    background: #1fb857;
}

.floating-wa i {
    pointer-events: none;
}

/*=========================================
            BACK TO TOP
=========================================*/
#backToTop {
    position: fixed;
    right: 25px;
    bottom: 105px;
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: #d3453d;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: .35s;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
    z-index: 998;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-5px);
}

/*=========================================
            PRELOADER
=========================================*/
#preloader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity .6s ease, visibility .6s ease;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader img {
    width: 100px;
    animation: putar 2s linear infinite;
}

.loader span {
    font-size: 18px;
    color: #21b15d;
    font-weight: 600;
}

@keyframes putar {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/*=========================================
            SCROLL ANIMATION
=========================================*/
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all .8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/*=========================================
            LIGHTBOX
=========================================*/
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: .35s;
    z-index: 9999;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,.4);
    animation: zoomImage .35s ease;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #ffffff;
    font-size: 45px;
    cursor: pointer;
    transition: .3s;
    font-weight: 700;
}

.close-lightbox:hover {
    transform: scale(1.15);
    color: #21b15d;
}

@keyframes zoomImage {
    from {
        transform: scale(.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/*=========================================
            RESPONSIVE
=========================================*/
@media(max-width: 1100px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .main-image img {
        height: 500px;
    }
    .keunggulan-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 991px) {
    .related-card {
        flex: 0 0 calc((100% - 30px) / 2);
        min-width: calc((100% - 30px) / 2);
    }
    .related-slider {
        padding: 0 45px;
    }
}

@media(max-width: 768px) {
    .container {
        width: 92%;
    }
    .detail-header {
        padding: 20px 0;
    }
    .detail-section {
        padding: 60px 0;
    }
    .product-detail h1 {
        font-size: 32px;
    }
    .description {
        font-size: 16px;
        line-height: 30px;
    }
    .spec-box {
        grid-template-columns: 1fr;
    }
    .button-group {
        flex-direction: column;
    }
    .thumbnail-list {
        justify-content: center;
        flex-wrap: wrap;
    }
    .thumb {
        width: 75px;
        height: 75px;
    }
    .main-image img {
        height: 380px;
    }
    .section-title h2 {
        font-size: 30px;
    }
    .keunggulan-grid {
        grid-template-columns: 1fr;
    }
    .manfaat-grid {
        grid-template-columns: 1fr;
    }
    .cta {
        padding: 70px 0;
    }
    .cta h2 {
        font-size: 30px;
    }
    .cta p {
        font-size: 16px;
    }
    .faq-question {
        font-size: 17px;
        padding: 20px;
    }
    .faq-answer p {
        padding: 0 20px 20px;
    }
    .related-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
    .related-slider {
        padding: 0 25px;
    }
    .related-nav button {
        width: 48px;
        height: 48px;
    }
    .related-header {
        text-align: center;
    }
}

@media(max-width: 480px) {
    .back-button {
        font-size: 15px;
    }
    .breadcrumb {
        font-size: 13px;
    }
    .badge {
        font-size: 13px;
        padding: 8px 16px;
    }
    .product-detail h1 {
        font-size: 28px;
    }
    .main-image {
        border-radius: 16px;
    }
    .main-image img {
        height: 300px;
    }
    .thumb {
        width: 65px;
        height: 65px;
    }
    .spec-item {
        padding: 15px;
    }
    .spec-item i {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    .keunggulan-card {
        padding: 25px;
    }
    .keunggulan-card i {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    .description-box {
        padding: 25px;
    }
    .tips-item {
        flex-direction: column;
        text-align: center;
    }
    .tips-item i {
        margin: auto;
    }
    .related-card img {
        height: 200px;
    }
}

/*=========================================
            SCROLLBAR
=========================================*/
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #ececec;
}

::-webkit-scrollbar-thumb {
    background: grey;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b83630;
}